$('.Navigation').on('mouseenter','li', function () {
        $(this).addClass('page')
               .siblings().removeClass('page');
    })
$('.Navigation').on('mouseleave','li', function () {
	$(this).removeClass('page')
})
var test=window.location.pathname;
var tt=test.slice(0,6);
console.log(tt);
$(".ul1>li").find(`a[href="${tt}"]`).parent().addClass("activePage");
$(".ul1>li").find(`a[href="${tt}"]`).parent().siblings().removeClass("activePage");


/*pj170327add*/
function get_hello(){
	var now=(new Date()).getHours();
	if(now>0&&now<=6){
		return ("午夜好，");
	}else if(now>6&&now<=11){
		return ("早上好，");
	}else if(now>11&&now<=14){
		return ("中午好，");
	}else if(now>14&&now<=18){
		return ("下午好，");
	}else{
		return ("晚上好，");
	}
}

$(function(){
	//如果登录了,显示信息.
	$.ajax({
		type : 'POST',
		url : '/member/ajax_loginsta.php',
		data : {},
		error : function (str) {
			//alert('error')
		},
		success : function (str) {
			if(str){
				var tmpHtml = '';
				tmpHtml += '<a href="/member/">'+get_hello()+$(str).find('strong').text()+'</a><span></span>';
				tmpHtml += '<a href="/member/index_do.php?fmdo=login&dopost=exit">退出</a>';
				$('.header_debark').html(tmpHtml);
			}
		}
	});
});
